package com.world.cat.pojo;

import com.world.cat.model.sys.PrivateFile;

/**
 * Created by xinyu.qiu on 2017/2/25.
 */
public class UploadFileResponse {
    private String id;
    private String fileName;//文件名
    private String mimeType;//文件类型
    private Integer fileSize;//文件大小,字节
    private String fileHash;//文件hash
    private String downloadUrl;//下载地址

    private String fileKey;//文件的一个随机码,用于下载

    public UploadFileResponse(PrivateFile privateFile) {
        this.id = privateFile.getId();
        this.fileName = privateFile.getFileName();
        this.mimeType = privateFile.getMimeType();
        this.fileSize = privateFile.getFileSize();
        this.fileHash = privateFile.getFileHash();
        this.downloadUrl = privateFile.getDownLoadFullUrl();
        this.fileKey = privateFile.getFileKey();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getMimeType() {
        return mimeType;
    }

    public void setMimeType(String mimeType) {
        this.mimeType = mimeType;
    }

    public Integer getFileSize() {
        return fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileHash() {
        return fileHash;
    }

    public void setFileHash(String fileHash) {
        this.fileHash = fileHash;
    }

    public String getDownloadUrl() {
        return downloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        this.downloadUrl = downloadUrl;
    }

    public String getFileKey() {
        return fileKey;
    }

    public void setFileKey(String fileKey) {
        this.fileKey = fileKey;
    }
}
